package com.hoshiibuy.spu.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * SPU属性组修改参数实体
 *
 * @author : yangcheng
 * @date : 2019/5/5 15:07
 * @mail : maiboyc@163.com
 **/
@ApiModel
@Data
public class SpuPropertiesValuesUpdateParam {

    // ID
    @NotNull(message = "ID不能为空")
    @ApiModelProperty(name = "id", value = "ID", required = true, dataType = "java.lang.Long", example = "3171776001692664100")
    private Long id;

    // spuId
    @NotNull(message = "spuId不能为空")
    @ApiModelProperty(name = "spuid", value = "spuId", required = true, dataType = "java.lang.Long", example = "3171776001692664001")
    private Long spuid;

    // 属性ID
    @NotNull(message = "属性ID不能为空")
    @ApiModelProperty(name = "propertyId", value = "属性ID", required = true, dataType = "java.lang.Long", example = "3171776001692664001")
    private Long propertyId;

    // 属性值
    @NotNull(message = "属性值不能为空")
    @ApiModelProperty(name = "value", value = "属性值", required = true, dataType = "java.lang.Long", example = "10000")
    private Long value;
}  